<script>
function votar(id){
	var url = '/votes/votar/'+id+'.json';
	$("#limbo").load(url);
}
</script>
<div id="limbo" style="display: none;"></div>
	<h2><?php __('Links');?></h2>
	<?php
	foreach ($links as $link):
	?>
		<input type="button" value="<?php echo $link['Link']['title']; ?>" onclick="javascript:votar(<?php echo $link['Link']['id']; ?>);">&nbsp;
	<?php endforeach; ?>	
	<p>
	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
